Total Complexity | 1 |
Total Lines | 14 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | 1 | import VERSION from './version' |
|
4 | |||
5 | /** |
||
6 | * @class Comfortably Numbers |
||
7 | * @name cnum |
||
8 | */ |
||
9 | class cnum { |
||
10 | static get version(): string { |
||
11 | 1 | return VERSION |
|
12 | } |
||
13 | |||
14 | static evaluate(expression: string): string { |
||
15 | 2 | const lexer = new Lexer(expression) |
|
16 | 2 | const parser = new Parser(lexer.lex()) |
|
17 | 2 | return parser.toString() |
|
18 | } |
||
24 |